import {BaseExtendApi} from "@/components/js/BaseExtendApi";
import service from "@/components/js/service";

const clone = Object.create(BaseExtendApi);
clone.getBaseUrl = function () {
    return "/app_menu";
};
clone.saveAppMenu = function (menus) {
    return service.post(this.getBaseUrl() + "/save_app_menu", menus);
}

clone.getAppMenuList = function (appId) {
    return service.get(this.getBaseUrl() + "/get_app_menus/" + appId);
}

export const MenuExtApi = clone;
